<template>
  <div class="login">
    <div class="login-center">
      <h1>bk管理系统</h1>
      <el-form
        :model="ruleForm"
        status-icon
        :rules="rules"
        ref="ruleForm"
        label-width="80px"
        class="demo-ruleForm"
      >
        <el-form-item label="用户名" prop="name">
          <el-input v-model="ruleForm.loginName" style="width:320px"></el-input>
        </el-form-item>
        <el-form-item label="密码" prop="key">
          <el-input v-model="ruleForm.loginKey" style="width:320px"></el-input>
        </el-form-item>
        <el-form-item label="即时配送" prop="delivery">
          <el-switch v-model="ruleForm.delivery"></el-switch>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">确定</el-button>
          <el-button>取消</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      ruleForm: {
        loginName: "",
        loginKey: ""
      },
      rules: {}
    };
  },
  methods: {
    onSubmit() {}
  }
};
</script>

<style scoped>
body,
.login {
  width: 100vw;
  height: 100vh;
}
.login {
  /* background: url(../../assets/img/bj.jpg) no-repeat; */
  background-size: 100% 100%;
}
.login-center {
  width: 450px;
  height: 450px;
  background: #fff;
  margin: 70px 60px 0 0;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 10px;
  padding: 10px;
}
</style>